package cn.fzc.example.redis.distributedlock.manager;

import cn.fzc.example.redis.distributedlock.LuaDistributeLock;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author: fu.zc
 * @Date: 2020/8/5 14:16
 * @Description:
 */
@Component
public class LuaLockRedisLockManager extends SimpleRedisLockManager {

    @Override
    @PostConstruct
    public void init() {
        distributeLock = new LuaDistributeLock(redisTemplate);
    }
}
